package com.example.oct.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcConfiguration implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("login");
        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/index.html").setViewName("index");
        registry.addViewController("/member-del.html").setViewName("member-del");
        registry.addViewController("/role-add.html").setViewName("role-add");
        registry.addViewController("/welcome.html").setViewName("welcome");
        registry.addViewController("/welcome1.html").setViewName("welcome1");
    }
}
